import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import {HttpClientModule, HttpClientJsonpModule} from '@angular/common/http';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { HomeComponent } from './views/home/home.component';
import { HeaderComponent } from './views/header/header.component';
import { ToolComponent } from './views/tool/tool.component';

// 服务
import { DataService} from './services/data.service';
import { RequestService } from './services/request.service'
import { ContentComponent } from './views/content/content.component';
import { HttpserviceService } from './services/httpservice.service';
import {CloseWindowService } from './components/close-window/close-window.service';
import { AppdataService } from './services/appdata.service';
import { MultimeterService } from './components/multimeter/multimeter.service';

// 动画
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
// 指令
import { HaloDirective } from './directive/halo.directive';
import { QuestionsComponent, QuestionsService } from './components/questions';
import { DragComponent } from './components/drag/drag.component';
import { TopDirective } from './directive/top.directive';
import { AudiotextComponent } from './views/audiotext/audiotext.component';
import { CloseWindowComponent } from './components/close-window/close-window.component';
import { MultimeterComponent } from './components/multimeter/multimeter.component';

@NgModule({
  declarations: [
    AppComponent,
    HomeComponent,
    HeaderComponent,
    ToolComponent,
    ContentComponent,
    HaloDirective,
    QuestionsComponent,
    DragComponent,
    TopDirective,
    AudiotextComponent,
    CloseWindowComponent,
    MultimeterComponent,
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    BrowserAnimationsModule,
    HttpClientModule,
    HttpClientJsonpModule
  ],
  providers: [
    DataService,
    QuestionsService,
    RequestService,
    HttpserviceService,
    CloseWindowService,
    AppdataService,
    MultimeterService
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
